Repository navigation
feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover - #9141
Conversation
…tigravity failover Signed-off-by: LoopX Agent <[email protected]>
46d838e to
527b0b5
Compare
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent | self_reported | Gemini | Antigravity
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机
本 PR 针对 exact head 527b0b5abdc13585bccd3bd13a9f8b6876376938 解决弹性双执行器池下管家故障转移链路的三处断档。启用 codex 与 antigravity 弹性双执行器池的个人管家运维方及 Antigravity 模型配置调用方在 Codex OAuth 配额耗尽时会遇到真实停摆。
改造前:主干既未注册 Carbon(gemini-4-carbon-{high,medium,low}),也无法按端点配置偏好模型,且弹性切换仅支持 antigravity 到 codex 单向回退,真实 Language Server 省略 modelId 时还会漏匹配并把 Codex 的 xhigh 思考强度透传给 Antigravity,最终在 StewardTurnHost 被直接拒绝。改造后:本机可通过 endpoint_models 为任意备选端点配置首选模型与思考强度(产品静态与列表默认仍保持中性的 Argon),Codex OAuth 配额全耗尽且无可用 API 回退时自动故障转移到配置好的 Antigravity 模型并在 Codex 恢复后切回,原生管家监控与定期汇报也保持连续执行。
可观测改进方面:endpoint_models 通过 steward_executor_machine_defaults_v1 校验并生效,manager_session_quota_route 与 stewardRoute 支持 codex 与 antigravity 双向弹性切换、正确匹配省略 modelId 的 LS 配置并隔离 xhigh,StewardTurnHost 与 StewardReports 在合格回退会话上继续正常推进并生成报告。同时严格限定范围:不把 Carbon 硬编码为产品默认模型,不改变 pinned/preferred 执行器语义,也不在 Antigravity 上开放 Codex 专属的 local_session 受管理编码回合。若不做本次修复,任何 Codex 配额周期耗尽都会长期卡死管家回复、日报生成与持续监控。
改动思路
继续沿用 native_policy.ts、chat_manager.py、machine_defaults.py 与 steward_managed_mode.ts 既有控制面 owner 边界:端点偏好在 machine_defaults 校验,配额路由在 stewardRoute 与 manager_session_quota_route 判定,原生管家准入由 observeStewardNativeExecutor 与 boundConversationExecutorMatches 守门,不引入并行路由或第二套状态。
当前收敛边界如下:本 PR 边界止于通用 per-endpoint 模型配置、双向弹性切换与合格故障转移会话上的原生管家 monitor/report 连续性,不包含与本次无关的本地持久化或后台监控重启恢复改动。
控制流采用单一事实来源串行推进:session_open._ensure_adapter_locked 调用 manager_session_quota_route 读取本机 steward_executor_machine_defaults_v1(含通用 endpoint_models 映射与有序 eligible_endpoints)及真实执行器配额,由 stewardRoute 做纯策略判定;发生跨执行器回退时由 manager_model_config 隔离 Codex xhigh 并注入该端点配置的 reasoning_effort;进入受管理原生管家流程时,observeStewardNativeExecutor 与 StewardTurnHost 通过 boundConversationExecutorMatches 与 upstream_context_history 放行合格故障转移会话并挂载只读报告工具与 _launch_guard。
具体改动
关键代码讲解
loopx/capabilities/steward_executor/machine_defaults.py(normalize_steward_executor_machine_defaults、effective_steward_executor_defaults)- 在
steward_executor_machine_defaults_v1新增可选通用映射endpoint_models({endpoint: {model, reasoning_effort}}),严格校验端点名属于已注册执行器、字段非空且reasoning_effort合法,并在非空时随机器默认投影输出;文件控制在372行,满足维护性棘轮上限(379行)。
- 在
loopx/capabilities/native_chat/antigravity_adapter.py(_matching_antigravity_model_config、endpoint_model_capacity、AntigravityAdapter._run_turn)- 注册
gemini-4-carbon-{high,medium,low}(MODEL_PLACEHOLDER_M427/M437/M438),同时在ANTIGRAVITY_MODEL_OPTIONS与ANTIGRAVITY_DEFAULT_MODEL保持中性默认 Argon 不偏袒特定版本;_matching_antigravity_model_config在 LS 省略modelId时通过modelOrAlias.model兜底精确匹配,endpoint_model_capacity构造不新建 cascade 的配额快照,_run_turn复用_launch_guard收窄预发布栅栏窗口。
- 注册
packages/loopx-codex-provider-routing/src/loopx_codex_provider_routing/native_policy.ts(stewardRoute)与native.py- 放行
primary为antigravity或codex的双向弹性切换:codex主通道仅在全部 OAuth slot 已耗尽(未来reset_at或新鲜observed_at)且当前模型无可用 API fallback 时才采纳通过validCapacity校验的fallback_capacity(antigravity),并在 Codex 恢复后立即切回;包版本升至0.15.9。
- 放行
loopx/chat_manager.py(manager_session_quota_route、manager_model_config)与loopx/control_plane/collaboration/steward_managed_mode.ts(observeStewardNativeExecutor)、loopx/capabilities/native_chat/steward_turn.pymanager_session_quota_route读取本机endpoint_models作为对应端点的默认模型/思考强度,manager_model_config隔离 Codexxhigh并避免LOOPX_MANAGER_*环境变量误透传;observeStewardNativeExecutor、StewardTurnHost.execute、StewardReports.prepare与chat/coordination.py对符合boundConversationExecutorMatches的codex -> antigravity回退开放非local_session原生管家回合与报告,同时按每轮在chat_runtime.py重置_steward_report_reader。
规范对齐
对照 docs/architecture/rfcs/manager-runtime-profile-v0.md 在合入前基线 eb552a8bb0532de117513ee5277a92e74e746309 与同步更新后的双语 RFC(docs/architecture/rfcs/manager-runtime-profile-v0.md 与 docs/architecture/rfcs/manager-runtime-profile-v0.zh-CN.md),三项核心验收标准均已落实:
RFC-MRP-ENDPOINT-MODELS-> implemented(loopx/capabilities/steward_executor/machine_defaults.py+tests/capabilities/test_steward_executor_machine_defaults.py)RFC-MRP-BIDIR-FAILOVER-> implemented(native_policy.ts/chat_manager.py+ TS/Python 定向单测)RFC-MRP-NATIVE-FALLBACK-> implemented(steward_managed_mode.ts/steward_turn.py+test_native_steward_advancement_and_report_run_on_qualified_antigravity_fallback)
对主干的风险
- 默认隔离与兼容性风险(已受控):未开启
selection_policy="flexible"且未同时配置["codex", "antigravity"]时,manager_session_quota_route直接返回None;ANTIGRAVITY_DEFAULT_MODEL与ANTIGRAVITY_MODEL_OPTIONS首选项保持 Argon;endpoint_models缺省为空且严格 fail-closed 拒绝未知执行器或非法reasoning_effort;无合格回退溯源的纯antigravity原生管家绑定在observeStewardNativeExecutor继续返回execution_error_code: "unsupported_executor"。 - 负向路径核验:当 Codex 仍有任一未耗尽 OAuth slot、处于
recovery_required或已有匹配模型的api_readykey 时,stewardRoute保持endpoint: null;缺少upstream_context_history原始记录或非flexible_availability_fallback时,boundConversationExecutorMatches与原生管家模式拒绝切换;_steward_report_reader仅挂载于native_turn的report流程并在chat_runtime.py置空隔离,不会污染普通对话工具集。 - 语义与 CI 对齐:未新增平行状态枚举或私有通道名词,沿用
flexible_availability_fallback、unsupported_executor等现有词汇,并通过semantic-vocabulary-drift-smoke.py。 - 最新 exact head
527b0b5abdc13585bccd3bd13a9f8b6876376938验证记录:- TypeScript 测试(
steward_route.test.ts、conversation_scope.test.ts、steward_managed_mode.test.ts、steward_reports.test.ts、conversation_binding.test.ts):PASS(97/97,fail 0)。 - Python 定向回归(
test_steward_executor_machine_defaults.py、test_steward_native_owner.py、test_antigravity_steward_adapter.py、test_chat_manager_model_adoption.py、test_native_steward_turn_host.py定向 fallback 用例):PASS(210/210+ 精简后11 passed)。注:此前针对全量test_native_steward_reports.py与stopped_after_model发现的 9 项失败已在干净origin/main基线上交叉复现,与本 PR 无关。 - 双语 RFC Diff(
check_rfc_bilingual.py)、ruff check、control-plane-maintainability-ratchet-smoke.py(magnitude_regressions=0)与loopx canary premerge --from-git-diff --git-diff-base origin/main:全部 PASS(selected=11, failures=0, merge_gate_passed=true);公私边界扫描零真实泄漏。 - 真实本机
antigravityLS 实机首回合将在升级线上守护进程与安装 provider 后紧接完成实测(PR 合并前属于部署后验证范围)。
- TypeScript 测试(
我的整体评价
从长程效果(long_horizon: improved)与用户体验(user_experience: improved)来看,本 PR 既满足"产品保持中立默认、本机可按端点灵活配置 Carbon 等偏好模型与优先级"的通用架构要求,也彻底修复了 Codex 配额耗尽导致管家卡死、xhigh 透传失败以及原生管家报告/monitor 中断的实际痛点;全部控制面复用、维护性棘轮、双向故障转移与负向隔离测试已在 exact head 527b0b5abdc13585bccd3bd13a9f8b6876376938 完整通过。
关于界面与视觉评估:本次改动集中于后端机器配置模型、执行器配额路由与原生管家运行时(loopx/capabilities/steward_executor/machine_defaults.py、packages/loopx-codex-provider-routing、loopx/chat_manager.py、loopx/control_plane/collaboration/steward_managed_mode.ts),未新增或修改前端 UI 视觉组件;Dashboard 既有通用 JSON 表单编辑器已由 configuration_ui.py 统一承载 steward_executor 配置编辑与回读。 unverified_scope: none。
Verdict: Generic per-endpoint model configuration, Antigravity Carbon registration, bidirectional Codex<->Antigravity flexible failover, and native steward fallback parity are cleanly implemented and verified at exact head 527b0b5.
English Verdict: APPROVE
|
Reviewer: model_agent · Gemini · Google DeepMind · self_reported Post-merge audit comment on Verified Post-Merge Findings
Verification Summary (
|
* fix(cli): preserve typed runtime diagnostics in Turn failures Signed-off-by: LoopX Agent <[email protected]> * feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141) Signed-off-by: LoopX Agent <[email protected]> * Keep the prepared Chat adapter available to a retry (#9134) A failed worker start can finish cleanup after a same-turn retry has selected the adapter. Keep its lifetime tied to the Session and let failed dispatch release its own worker registration. The regression asserts one upstream turn and explicit adapter closure with the Session. Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c. (cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover zero-effect monitors and cleared-replan reports (#9143) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145) Signed-off-by: LoopX Agent <[email protected]> * Verify quota gate scope through signed lane references (#9101) * test(quota): verify scoped gates through complete lane references Signed-off-by: LoopX Agent <[email protected]> * Test canonical quota gates in both public response modes Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Test C1 planning and Host input from the original quota capture (#9102) * Use recorded quota decisions in the no-Todo settlement regression Signed-off-by: LoopX Agent <[email protected]> * Exercise the complete Host prompt from the captured quota source Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Prepare the CLI budget baseline with a private Git index (#9103) Signed-off-by: LoopX Agent <[email protected]> * Exercise C1 Goal delivery and bound replan from the saved source (#9104) Signed-off-by: LoopX Agent <[email protected]> * Keep long claim overlap scopes on demand (#9086) * Link long thin-claim overlap lists to their receipts Signed-off-by: LoopX Agent <[email protected]> * Read claim overlap details without copying the lease Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(quota): preserve explicit Monitor Todo selection (#9099) Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts. Signed-off-by: LoopX Agent <[email protected]> * Keep ready Todo scope details on the required context read (#9106) Signed-off-by: LoopX Agent <[email protected]> * Fix archive rollback with custom install directories (#9066) * refactor(core): defer benchmark implementations during capability discovery Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults. Signed-off-by: cicolord <[email protected]> * Defer Yardstick evaluation until an enabled Explore read Signed-off-by: cicolord <[email protected]> * Omit empty Todo summary lanes from ordinary Worker context Signed-off-by: cicolord <[email protected]> * fix(update): honor configured archive directories during rollback Signed-off-by: LoopX Agent <[email protected]> * fix(lark): replay recall guard on current main Signed-off-by: huangruiteng <[email protected]> * docs: record the verified LoopX 2.3.0 release baseline Signed-off-by: LoopX Agent <[email protected]> * Preserve quota spend source when prepared work is admitted Signed-off-by: LoopX Agent <[email protected]> * test(quota): qualify native saved complete-Turn checkpoints Signed-off-by: LoopX Agent <[email protected]> * Retry cleanup of an owned file mutation marker Signed-off-by: LoopX Agent <[email protected]> * Keep synthetic Git-path test data outside the public source scan Signed-off-by: LoopX Agent <[email protected]> * fix(quota): share native preparation wait with readiness Signed-off-by: LoopX Agent <[email protected]> * fix(doctor): bind package update readback to its Python environment Signed-off-by: LoopX Agent <[email protected]> * Keep Doctor discovery separate from service activation Signed-off-by: LoopX Agent <[email protected]> * Verify the recorded Python launcher before Doctor probes it Signed-off-by: LoopX Agent <[email protected]> * fix(desktop): require runtime qualification for macOS preview updates Signed-off-by: LoopX Agent <[email protected]> * fix(quota): reuse replan projection owners during recovery Signed-off-by: LoopX Agent <[email protected]> * Qualify Codex 0.169 native context replay on main Signed-off-by: LoopX Agent <[email protected]> * Stop regenerating retired quota view aliases Signed-off-by: LoopX Agent <[email protected]> * fix: pin deferred native context reads to the original capture Signed-off-by: LoopX Agent <[email protected]> * Keep native capture navigation within small output budgets Signed-off-by: LoopX Agent <[email protected]> * Retire legacy heartbeat work prompt generation Signed-off-by: LoopX Agent <[email protected]> * Capture C1 composition failures as receipt diagnostics Signed-off-by: LoopX Agent <[email protected]> * Recover interrupted native Todo readiness from the original Turn Signed-off-by: LoopX Agent <[email protected]> * Revalidate the original lease before publishing resumed native context Signed-off-by: LoopX Agent <[email protected]> * Fence native readiness publication with the canonical lease writer Signed-off-by: LoopX Agent <[email protected]> * fix(scheduler): keep Codex fallback on the original C1 runtime Signed-off-by: LoopX Agent <[email protected]> * fix(scheduler): pin the originating fallback launchers Signed-off-by: LoopX Agent <[email protected]> * Retire the duplicate Codex App scheduler projection Signed-off-by: LoopX Agent <[email protected]> * Seed the recorded scheduler profile in the elapsed-backoff fixture Signed-off-by: LoopX Agent <[email protected]> * Verify canonical cadence on refused and settled Turns Signed-off-by: LoopX Agent <[email protected]> * Pin named Core commands in saved scheduler fallbacks Signed-off-by: LoopX Agent <[email protected]> * fix(research): preserve saved case addresses when a version cannot open Signed-off-by: LoopX Agent <[email protected]> * Preserve citation focus after a saved study refresh Signed-off-by: LoopX Agent <[email protected]> * Capture authenticated LoopX receipts for Research attention (#8790) * feat(research): capture authenticated LoopX attention receipts Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * fix(research): tighten attention receipt provenance Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * fix(research): publish attention captures after source validation Signed-off-by: huangruiteng <[email protected]> --------- Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: huangruiteng <[email protected]> Co-authored-by: TRAE CLI <[email protected]> Co-authored-by: huangruiteng <[email protected]> * Recover the original Session and Turn from a confirmed Chat task Signed-off-by: huangruiteng <[email protected]> * perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041) * perf(lark,native_chat): avoid full directory reparsing in steward chat loops - Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture. - Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors. - Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated. - Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py. Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): project small recovery metadata fields to stop data_url memory growth Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Retire transitional smoke checks and duplicate execution (#9073) Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074) Signed-off-by: LoopX Agent <[email protected]> * Remove redundant defensive prose from prompts and comments (#9072) Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness. Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072. Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> * Keep original Chat retry errors visible during receipt refresh Signed-off-by: LoopX Agent <[email protected]> * fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077) Signed-off-by: LoopX Agent <[email protected]> * feat(steward): add exact-head PR review signals and protected merge confirmation (#9081) Signed-off-by: LoopX Agent <[email protected]> * feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083) Signed-off-by: LoopX Agent <[email protected]> * refactor(content-ops): slim surface module and eliminate Any (#8961) * refactor(content-ops): slim surface module and eliminate Any Signed-off-by: LoopX Agent <[email protected]> * fix(content-ops): reject malformed angle source_item_ids containers Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085) Signed-off-by: LoopX Agent <[email protected]> * fix(hosts): raise managed service startup readiness timeout to 45s (#9087) Signed-off-by: LoopX Agent <[email protected]> * perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088) Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches. Signed-off-by: LoopX Agent <[email protected]> * refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929) Signed-off-by: LoopX Agent <[email protected]> * perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089) Signed-off-by: LoopX Agent <[email protected]> * refactor(control-plane): split and slim quota monitor_poll_commit (#8885) * refactor(control-plane): split and slim quota monitor_poll_commit Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): preserve legacy lane budget and observation diagnostic order Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939) Signed-off-by: LoopX Agent <[email protected]> * refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911) * refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): respect include_raw_response in retained result recovery Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920) * refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling Signed-off-by: LoopX Agent <[email protected]> * fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093) Signed-off-by: LoopX Agent <[email protected]> * perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096) Signed-off-by: LoopX Agent <[email protected]> * perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098) Signed-off-by: LoopX Agent <[email protected]> * perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100) Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: cicolord <[email protected]> Signed-off-by: LoopX Agent <[email protected]> Signed-off-by: huangruiteng <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> Co-authored-by: cicolord <[email protected]> Co-authored-by: huangruiteng <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897) Signed-off-by: LoopX Agent <[email protected]> * Fix truncated requests and responses in the Codex API relay (#8713) * fix(codex relay): fence incomplete model requests before drain Signed-off-by: LoopX Agent <[email protected]> * fix(codex relay): surface incomplete upstream responses Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b. Signed-off-by: LoopX Agent <[email protected]> * Bound Codex relay writes to clients that stop reading Signed-off-by: LoopX Agent <[email protected]> * Reject upstream chunked responses missing the trailer terminator Signed-off-by: LoopX Agent <[email protected]> * Validate upstream chunk data delimiters before relay completion Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147) Signed-off-by: LoopX Agent <[email protected]> * docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149) Signed-off-by: LoopX Agent <[email protected]> * fix(chat): recover saved answers and diagnose lost workers (#9120) * fix(chat): recover saved answers and diagnose lost workers Signed-off-by: LoopX Agent <[email protected]> * style(lark): keep private_conversations within module line budget Signed-off-by: LoopX Agent <[email protected]> * fix(chat): retain execution_worker_exited in pending backlog count Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(chat): resume steward requests lost before dispatch (#9125) Signed-off-by: LoopX Agent <[email protected]> * fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151) Signed-off-by: LoopX Agent <[email protected]> * fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155) Signed-off-by: LoopX Agent <[email protected]> * fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154) * fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice Signed-off-by: LoopX Agent <[email protected]> * fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159) Signed-off-by: LoopX Agent <[email protected]> * fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158) * fix(control_plane): align lease recovery, settlement readback, and runtime fixtures Signed-off-by: LoopX Agent <[email protected]> * fix(control_plane): forward record_capture in worker outage test and harden version type guard Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160) Signed-off-by: LoopX Agent <[email protected]> * docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162) * docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording Signed-off-by: LoopX Agent <[email protected]> * docs(release): align #9158 and #9161 descriptions with verified commits Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165) Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167) Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> Signed-off-by: cicolord <[email protected]> Signed-off-by: huangruiteng <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> Co-authored-by: cicolord <[email protected]> Co-authored-by: huangruiteng <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: TRAE CLI <[email protected]>
Problem Statement
Carbon(gemini-4-carbon-{high,medium,low}) was not yet registered onmain, and live Antigravity Language Server responses omitmodelIdonclientModelConfigs(providingmodelOrAlias.modelonly), causingmetadata_review_capacityand offered-model checks to miss live entries.endpoint_models) for fallback endpoints in aflexiblepool, so secondary endpoints could not select a preferred offered model (such as Carbon onantigravity) independently of the primary executor.antigravity -> codex(stewardRoute,manager_session_quota_route,session_open.py,chat_store.py,boundConversationExecutorMatches), leaving exhausted Codex stewards wedged instead of switching to an authorized fallback endpoint and restoring back to Codex later.managed_actoronto Antigravity blocked native monitors, steward advancement, and scheduled periodic reports (observeStewardNativeExecutor/StewardTurnHost.execute/StewardReports.prepare).Root Cause
antigravity_adapter.pylackedgemini-4-carbon-*(MODEL_PLACEHOLDER_M427/M437/M438), matching onmodelOrAlias.modelwhenmodelIdis omitted, and a non-cascadeendpoint_model_capacityprobe.steward_executor_machine_defaults_v1lacked an optionalendpoint_modelsmap, andmanager_model_configfell back to"xhigh"when crossing endpoints away from Codex.loopx-codex-provider-routing(stewardRouteinnative_policy.tsandNativeAccounts.steward_routeinnative.py),chat_manager.py,session_open.py,chat_store.py, andconversation_scope.tsassumedantigravityprimary only.steward_managed_mode.ts,steward_turn.py,steward_reports.py,chat/coordination.py, andchat_runtime.pyrejectedAntigravityAdaptereven when acodexsteward binding had a Core-qualified flexible fallback session.Solution
gemini-4-argon-high) while registeringgemini-4-carbon-{high,medium,low}(MODEL_PLACEHOLDER_M427/M437/M438), matchingmodelOrAlias.modelwhenmodelIdis omitted, addingendpoint_model_capacity, and adding optional validatedendpoint_models({endpoint: {model, reasoning_effort}}) tosteward_executor_machine_defaults_v1+chat_manager.py. Update bilingual RFCmanager-runtime-profile-v0in sync.codex <-> antigravityfailover (0.15.9): ExtendstewardRouteandNativeAccounts.steward_routeto acceptprimaryin{"antigravity", "codex"}with all-slots exhaustion verification (freshobserved_ator futurereset_at) and API-fallback readiness checks; generalizemanager_session_quota_route,manager_model_resolution,manager_model_config(isolating Antigravity effort tiers from Codex"xhigh"),session_open.py,chat_store.py, andboundConversationExecutorMatches.codex -> antigravityflexible fallback inobserveStewardNativeExecutor(retainingunsupported_executorfor unallocatedantigravity), wire_launch_guardpre-publication checks intoAntigravityAdapter._run_turn, attach scoped_steward_report_readerfor nativereportturns onAntigravityAdapter, and supportAntigravityAdapterfor native steward advancement & reports inStewardTurnHost.Local Validation
steward_route.test.ts,conversation_scope.test.ts,steward_managed_mode.test.ts,steward_reports.test.ts,conversation_binding.test.ts):97/97passed (fail 0).test_steward_executor_machine_defaults.py,test_steward_native_owner.py,test_antigravity_steward_adapter.py,test_chat_manager_model_adoption.py,test_native_steward_advancement_and_report_run_on_qualified_antigravity_fallback):210/210passed.scripts/check_rfc_bilingual.py,ruff check,examples/control_plane/control-plane-maintainability-ratchet-smoke.py,loopx canary premerge --from-git-diff --git-diff-base origin/main